<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>图书信息</title>
  <style>
    #co1 {
      width: 500px;
      border: solid 1px;
      padding: 20px;
    }
    #title {
      font-size: 16px;
      font-weight: bold;
      color: #3399FF;
    }
    #content {
      font-size: 12px;
      text-align: left;
    }
  </style>
</head>
<body>
<jsp:useBean id="book" class="JavaBean.Book"></jsp:useBean>
<jsp:useBean id="encoding" class="JavaBean.Char"></jsp:useBean>
<jsp:setProperty name="book" property="*"></jsp:setProperty>
<div align="center">
  <div id="co1">
    <div id="title">
      <%= encoding.toChar(book.getTitle()) %>
    </div>
    <hr>
    <div id="content">
      <%= encoding.toChar(book.getContent()) %>
    </div>
  </div>
</div>
</body>
</html>
